package com.hxzy.research.service.research;

import com.hxzy.research.pojo.TblItem;
import com.hxzy.research.pojo.TblSelectvalue;
import net.sf.ehcache.transaction.xa.EhcacheXAException;

public interface ItemService {
    //添加小项
    public void addItem(TblItem tblItem)throws Exception;
    //添加满意值表
    public void addSelectValue(TblSelectvalue tblSelectvalue)throws Exception;
    //查询小项id
    public TblItem findItemIdByName(TblItem tblItem)throws Exception;
    //通过id查询小项的item_name
    public TblItem findItemNameById(Integer id)throws Exception;


    //修改-先修改小项
    public void updateItem(TblItem tblItem)throws Exception;
    //修改满意值
    public void updateSelectvalue(TblSelectvalue tblSelectvalue)throws Exception;
    //然后修改满意值-先删除后添加
    //删除-通过小项id
    public void deleteSelectvalue(Integer itemId)throws Exception;

    //执行删除操作
    public void deleteItemById(Integer id)throws Exception;
}
